from jinja2 import Template
from template import GraphTemplate
from typing import Dict 
from data import GenData,nodes,rels,c
genname = "Graph"
title = "Graph"
graph = Template(GraphTemplate)

    

if __name__ == '__main__':
    GenData() 
    with open(f"./{genname}.html", "w") as f:
        f.write(graph.render({"nodes":nodes, "rels":rels,"c":c ,"title":title}))
    print("done")